home *** CD-ROM | disk | FTP | other *** search
- Path: news.fgg.eur.nl!usenet
- From: Stefan Nelwan <nelwan@mw_tx1.tca.fgg.eur.nl>
- Newsgroups: comp.lang.c++
- Subject: constant definitions in header files
- Date: Thu, 25 Jan 1996 12:29:34 +0100
- Organization: Thorax Centre, AZR, Rotterdam, The Netherlands
- Message-ID: <3107699E.3EA5@mw_tx1.tca.fgg.eur.nl>
- NNTP-Posting-Host: mw_tx1.tca.fgg.eur.nl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (X11; I; HP-UX A.09.03 9000/710)
- CC: nelwan
-
- Hi!
-
- I am curious about the common implementation of using const int's in
- header files under
- different compilers. According to "The C++ programming language"
- (Stroustrup), only
- simple constants may be placed in header files. It is up to the compiler
- to ensure no
- redundant copies of those constants are generated.
-
- Are the current C++-compilers smart enough to recognize multiple copies
- of the constant types?
-
-
- bye,
-
- Stefan.
-